setInsetsIgnoringVisibility
open fun setInsetsIgnoringVisibility(typeMask: Int, @NonNull insets: Insets): WindowInsetsCompat.Builder(source)
Sets the insets a specific window type in pixels, while ignoring its visibility state.
The insets represents the area of a a window that that may be partially or fully obscured by the system window identified by typeMask
. This value does not change based on the visibility state of those elements. For example, if the status bar is normally shown, but temporarily hidden, the inset returned here will still provide the inset associated with the status bar being shown.
Return
itself
Parameters
typeMask
The bitmask of Type to set the insets for.
insets
The insets to set.
See also
Throws
If typeMask
contains ime. Maximum insets are not available for this type as the height of the IME is dynamic depending on the EditorInfo of the currently focused view, as well as the UI state of the IME.